package com.mh.entity;

import java.math.BigDecimal;

import com.mh.jdbc.entity.MBean;

public class Book extends MBean{
	private Integer id;//id
	private String bookName;//书名
	private String author;//作者
	private Integer sex;//性别
	private BigDecimal price;//价格
	private String bookDesc;//书籍描述
	private Integer bookType;//书籍类型
	public Book(String bookName, String author, Integer sex, BigDecimal price, String bookDesc, Integer bookType) {
		this.bookName = bookName;
		this.author = author;
		this.sex = sex;
		this.price = price;
		this.bookDesc = bookDesc;
		this.bookType = bookType;
	}
	public Book() {
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getBookName() {
		return bookName;
	}
	public void setBookName(String bookName) {
		this.bookName = bookName;
	}
	public String getAuthor() {
		return author;
	}
	public void setAuthor(String author) {
		this.author = author;
	}
	public Integer getSex() {
		return sex;
	}
	public void setSex(Integer sex) {
		this.sex = sex;
	}
	public BigDecimal getPrice() {
		return price;
	}
	public void setPrice(BigDecimal price) {
		this.price = price;
	}
	public String getBookDesc() {
		return bookDesc;
	}
	public void setBookDesc(String bookDesc) {
		this.bookDesc = bookDesc;
	}
	public Integer getBookType() {
		return bookType;
	}
	public void setBookType(Integer bookType) {
		this.bookType = bookType;
	}
	public String toString() {
		return "Book [id=" + id + ", bookName=" + bookName + ", author=" + author + ", sex=" + sex + ", price=" + price
				+ ", bookDesc=" + bookDesc + ", bookType=" + bookType + "]";
	}
}
